package com.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bs_admin")   //1.绑定对应表名
public class Admin extends Model<Admin> {

    @TableId(type = IdType.AUTO)  //设置主键为 自动增加
    private Integer id;
    private String username;
    private String password;
}